package com.shenhangye.pushlive.filter

import android.content.Context
import android.opengl.GLES11Ext
import android.opengl.GLES30
import com.shenhangye.pushlive.R

class CameraFboFilter(context: Context) :FboBaseFilter(context, R.raw.camera_vert, R.raw.camera_fra) {

    private var matrix: FloatArray?= null
    override fun beforeDraw() {
        GLES30.glUniformMatrix4fv(vMatrix, 1, false, matrix, 0)
    }
    fun setMatrix(matrix: FloatArray?) {
        this.matrix = matrix
    }
    override fun getTextureTarget(): Int {
        return GLES11Ext.GL_TEXTURE_EXTERNAL_OES
    }

}